package com.xsir.ditan.common.config;

import at.pollux.thymeleaf.shiro.dialect.ShiroDialect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author user
 * @date 2021/2/3
 */
@Configuration
public class ShiroConfig {
    
    /**
     * thymeleaf模板引擎和shiro框架的整合
     */
    @Bean(name = "shiroDialect")
    public ShiroDialect shiroDialect(){
        return new ShiroDialect();
    }
    
}
